//
//  HDFKTableViewCell.m
//  自定义collectionView
//
//  Created by apple on 15-1-15.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import "HDFKTableViewCell.h"//货到付款
#import "CustomLabel.h"
@implementation HDFKTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = RGBA(236, 236, 236, 1);
        
        UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, __MainScreen_Width, 174)];
        [self addSubview:view];
        view.backgroundColor = [UIColor whiteColor];
        view.layer.borderColor = [UIColor lightGrayColor].CGColor;
        view.layer.borderWidth = 0.5;
        
        float height = 5;
        UILabel * titleLab = [[UILabel alloc]initWithFrame:CGRectMake(10, height, 80, 30)];
        [self addSubview:titleLab];
        titleLab.text = @"货到付款";
        titleLab.font = [UIFont fontWithName:nil size:15];
        
        CustomLabel * detailLab1 = [[CustomLabel alloc]initWithFrame:CGRectMake(10, height += 40, __MainScreen_Width-20, 60) andTextString:@"支持现金支付:货物送到订单制定的收货地址后，由收货人支付货款给送货人员" andFontSize:13];
        [self addSubview:detailLab1];
        
        CustomLabel * detailLab2 = [[CustomLabel alloc]initWithFrame:CGRectMake(10, height += 40, __MainScreen_Width-20, 60) andTextString:@"支持POS机刷卡支付:货物送到订单指定的收货地址后，由收货人刷卡支付订单金额。" andFontSize:13];
        [self addSubview:detailLab2];
        
        CustomLabel * detailLab3 = [[CustomLabel alloc]initWithFrame:CGRectMake(10, height += 40, __MainScreen_Width-20, 60) andTextString:@"签收时，请您仔细核对款项，务必做到货款两清，若事后发现款项错误,我们将无法在核实确认。" andFontSize:13];
        [self addSubview:detailLab3];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
